﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TR.AppService.Dto;
using TR.AppService.Dto.wh_Buy_Order_hDto;
using TR.Domain.Entity;
using TR.Domain.Entity.BsItemType;
using TR.Domain.Entity.JH;

namespace TR.AppService.AppService.Wh_Buy_Order_h
{
    public interface Iwh_Buy_Order_hAppService
    {
        //分页条件查询
        Task<DtoFenYe<wh_Buy_Order_h>> FenYeSelect(int mys, int dqy, string name = "");

        //信息增加
        Task<bool> InsertOrder(WBOHInsertDto jhzb, List<WODInsertDto> ddmx);

        //信息修改
        Task<bool> UpdateOrder(JHZB jHZB, List<JHMX> ddmx);

        //进货订单编号查询
        Task<wh_Buy_Order_h> OrderBhSelect(string tj);

        //进货明细表
        Task<List<JHXQ>> JHXQTjSelect(string tj);

        //供应商下拉框
        Task<List<bs_Supply>> bs_SubblySelect();

        //根据供应商下拉框查询联系人联系方式
        Task<bs_Supply> bs_SupplyTjSelect(string tj);

        //货品信息查询
        Task<DtoFenYe<bs_Item>> BsItemSelect(int mys,int dqy,string? tj);
    }
}
